<?php

class myConstants
{
  
  // Type
  public static $TYPES = array('tlg'=>'TLG', 'sprite_deed'=>'Sprite Дээд Лиг', 'sprite_xugjil'=>'Sprite Хөгжлийн Лиг', 'dream'=>'Мөрөөдлийн Лиг');
  public static function getNewsTypes()
  {
      return self::$TYPES;
  }
  public static function getNewsTypeKeys()
  {
      return array_keys(self::$TYPES);
  }
  public static function getNewsTypeValueByKey($key)
  {
      $array = self::$TYPES;
      return $array[$key];
  }
  
  
  public static $letters = array('А','Б','В','Г','Д','Е','Ё','Ж','З','И','Й','К','Л','М','Н','О','Ө','П','Р','С','Т','У','Ү','Ф','Х','Ц','Ч','Ш','Щ','Э','Ю','Я');
  public static function getLetters()
  {
    return self::$letters;
  }
  
  
  // Gallery Type
  public static $GalleryTypes = array('match'=>'Тоглолт', 'team'=>'Баг', 'player'=>'Тоглогч', 'other'=>'Бусад');
  public static function getGalleryTypes()
  {
    return self::$GalleryTypes;
  }
  public static function getGalleryTypeKeys()
  {
    return array_keys(self::$GalleryTypes);
  }
  public static function getGalleryTypeValueByKey($key)
  {
    $array = self::$GalleryTypes;
    return $array[$key];
  }
  
  
  
  
  
  
  
  
  //BANNER
  public static $BANNER_POSITIONS = array(1=>'Вэбийн толгой хэсэгт (өргөн=1000px, өндөр=65px)', 2=>'Нүүр хуудсаны дунд хэсэгт (өргөн=750px)', 3=>'Баруун хэсэгт (өргөн=220px)');

  public static $BANNER_POSITIONS_WIDTH = array(1=>1000, 2=>750, 3=>220);

  // get banner positions array
  public static function getBannerPositions()
  {
    return self::$BANNER_POSITIONS;
  }
  public static function getBannerPositionValue($key)
  {
    $positions = self::$BANNER_POSITIONS;
    return $positions[$key];
  }
  public static function getBannerPositionWidth($key)
  {
    $positions = self::$BANNER_POSITIONS_WIDTH;
    return $positions[$key];
  }

  public static function getBannerPositionWidths()
  {
    return self::$BANNER_POSITIONS_WIDTH;
  }

}